package com.boxfishedu.foreignkey.service;

import com.boxfishedu.foreignkey.entity.Information;
import com.boxfishedu.foreignkey.entity.jpa.InformationJpaRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by lzx on 16/3/9.
 */
@Service
public class InformationService {

    @Autowired
    private InformationJpaRepository informationJpaRepository;

    public Information findInfo(String idCard){
        return informationJpaRepository.findByIdCard(idCard);
    }
}
